package com.ruihu.admin.module.business.task.constant;

import com.ruihu.admin.common.constant.ResponseCodeConst;
import com.ruihu.admin.module.system.position.PositionResponseCodeConst;

/**
 * 任务返回常量
 */
public class TaskResponseCodeConst extends ResponseCodeConst {

    public TaskResponseCodeConst(int code, String msg) {
        super(code, msg);
    }

    public static final TaskResponseCodeConst TASK_ID_NULL = new TaskResponseCodeConst(14000, "任务ID为空");

    public static final TaskResponseCodeConst TASK_NOT_FOUND = new TaskResponseCodeConst(14001, "任务不存在");

    public static final TaskResponseCodeConst TASK_REJECT_MODIFY_PLAN_NUM = new TaskResponseCodeConst(14002, "启动的任务不允许修改子任务数");

    public static final TaskResponseCodeConst TASK_STATUS_NOT_MEET_REQUIRMENT = new TaskResponseCodeConst(14003, "任务状态不符合要求");

    public static final TaskResponseCodeConst MUST_GREATER_THAN_SUB_TASK_AMOUNT = new TaskResponseCodeConst(14004, "设置的子任务数量必须大于已经运行的子任务数量");

    public static final TaskResponseCodeConst REJECT_PAUSE__DUE_TO_SUB_TASK_RUNNING = new TaskResponseCodeConst(14005, "子任务正在运行，不允许暂停");

    public static final TaskResponseCodeConst REJECT_DELETE__DUE_TO_SUB_TASK_RUNNING = new TaskResponseCodeConst(14006, "子任务正在运行，不允许删除");

    public static final TaskResponseCodeConst MAIN_TASK_SUB_TASK_NOT_MATCH = new TaskResponseCodeConst(14007, "主子任务不匹配");

    public static final TaskResponseCodeConst TASK_CLAIM_EXCEPTION = new TaskResponseCodeConst(14008, "任务执行失败");

    public static final TaskResponseCodeConst TASK_ALREADY_CLAIM_BY_OTHER = new TaskResponseCodeConst(14009, "任务已被其他人执行");

    public static final TaskResponseCodeConst TASK_NODE_NOT_FOUND = new TaskResponseCodeConst(14010, "任务节点未找到");

    public static final TaskResponseCodeConst SUB_TASK_NODE_INST_NOT_FOUND = new TaskResponseCodeConst(14011, "任务节点实例未找到");

    public static final TaskResponseCodeConst SUB_TASK_NO_PRIVILEGE = new TaskResponseCodeConst(14012, "无权限执行任务");

    public static final TaskResponseCodeConst NEXT_TASK_NODE_NULL = new TaskResponseCodeConst(14013, "下一个环节不存在");

    public static final TaskResponseCodeConst PREV_TASK_NODE_NULL = new TaskResponseCodeConst(14014, "上一个环节不存在");

    public static final TaskResponseCodeConst TASK_NODE_FILE_NOT_FOUND = new TaskResponseCodeConst(14015, "任务附件不存在");

    public static final TaskResponseCodeConst RUNNING_TASK_PLAN_NUM_MUST_GREATER_THAN_PREVIOUS = new TaskResponseCodeConst(14016, "修改的计划数必须大于之前设置的计划数");

    public static final TaskResponseCodeConst TASK_NAME_HAS_EXISTS = new TaskResponseCodeConst(14017, "任务名称已重复");

    public static final TaskResponseCodeConst TASK_ADD_FAIL = new TaskResponseCodeConst(14018, "添加任务失败");

    public static final TaskResponseCodeConst AI_INVOKE_FAIL = new TaskResponseCodeConst(14019, "AI调用失败");

    public static final TaskResponseCodeConst FINISH_TASK_CANNOT_DELETE = new TaskResponseCodeConst(14020, "完成的任务不能删除");

    public static final TaskResponseCodeConst ELECTRIC_CORE_CODE_EXISTS = new TaskResponseCodeConst(14021, "电芯编号已经存在");

    public static final TaskResponseCodeConst EXPORT_ERROR = new TaskResponseCodeConst(14022, "导出失败");

    public static final TaskResponseCodeConst ELECTRIC_CORE_CODE_EMPTY = new TaskResponseCodeConst(14023, "电芯编号为空");

    public static final TaskResponseCodeConst POLE_GROUP_NUMBER_EMPTY = new TaskResponseCodeConst(14024, "极组条码为空");

    public static final TaskResponseCodeConst POLE_GROUP_IMAGE_FINISH = new TaskResponseCodeConst(14025, "极组图片已经获取完毕");

    public static final TaskResponseCodeConst POLE_GROUP_IMAGE_MESSAGE_FAIL = new TaskResponseCodeConst(14026, "发送极组图片消息失败");

}
